package com.hmall.mapper;

import com.hmall.domain.po.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.domain.vo.UserLoginVO;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HBQ
 * @since 2025-10-22
 */
public interface UserMapper extends BaseMapper<User> {

    @Update("UPDATE user SET count = count + 1 WHERE id = #{userId}")
    void saveUserCount(UserLoginVO userLoginVO);
}
